<h1>请输入新设备信息</h1>

<%= error_messages_for :equipment %>

<% form_for(:equipment, :url => equipment_path) do |f| %>
  <p>
    <b>设备名称</b><br /><%= f.text_field :name %>
  </p>

  <p>
    <b>设备型号</b><br />
    <%= f.text_field :etype %>
  </p>

  <p>
    <b>设备图片</b><br />
    <%= f.text_field :image_url %>
  </p>

  <p>
    <b>设备说明</b><br />
    <%= f.text_area :description, :rows => 5 %>
  </p>

  <p>
    <%= submit_tag "新增" %>
  </p>
<% end %>

<%= link_to 'Back', equipment_path  %>
